/**
 * Created by Administrator on 2017/7/4.
 */

import * as types from './configs/type-mutation';

export default {

 [types.INFO_TEST](state,params){

  state.test= params
   //console.log(state.test)
 },
 [types.NEW_MSG](state,params){
  state.newsList = params
 },
 [types.SHOW_TAOST](state,params){
    state.showMsg = params.alertMsg;
    state.showTaost = params.onShow ;
 },
 [types.NEW_DATA_LIST](state,params){
      if(params.dataList){

        state.newsList = params.dataList
        //console.log(state.newsList)

      }
 }

}

